var Member_Join_02 = function() {
	memberJoin02 = this;
	memberJoin02.memberJoinJson;
}
Member_Join_02.prototype = {
	getMyProfile : function() {
		var mj = new MJson();
		var cm = new ConnectionManager();

		mj.putPub(MJson.PUB.SID, "US001");
		mj.putPub(MJson.PUB.SERVICENAME, "getMyProfile");
		mj.putClient(MJson.CLIENT.USERID, document.globalObj.LOGIN_DATA.userId);
		console.log("request : " + mj.getJsonString());
		cm.requestGet(mj.getJsonString(), function(jsonData) {
			console.log("성공 :: 통신");
			if (mj.checkServiceResult(jsonData)) {
				// 로그인 성공
				console.log('성공 :: join02');
				console.log("json :: " + JSON.stringify(jsonData));
				memberJoin02.memberJoinJson=jsonData;
				memberJoin02.displayUIObject();
			} else {
				console.log('실패 :: join02');
			}
		}, function(e) {
			console.log("실패 :: 통신");
		});
	},
	displayUIObject : function (){ 
		$("#memberJoinName").text(document.globalObj.LOGIN_DATA.userName);
		$("#memberJoinId").text(memberJoin02.memberJoinJson.msp.contents.items.userId); 
		$("#memberJoinNick").text(memberJoin02.memberJoinJson.msp.contents.items.nickname);
		$("#memberJoinMail").text(memberJoin02.memberJoinJson.msp.contents.items.email);
		$("#memberJoinPhone").text(memberJoin02.memberJoinJson.msp.contents.items.phonenum);
		
	},
	onPageShow : function() {
		console.log(this);
		memberJoin02.getMyProfile();
		$("#joinGoProfileAnchor").bind('click', function(event) {
		  console.log("joinGoProfileAnchor click");
		  $.mobile.changePage("../mypage/profile.html");
		});
		$("#joinGoIndexAnchor").bind('click', function(event) {
		  console.log("joinGoIndexAnchor click");
		  $.mobile.changePage("../index/my_index.html");
		});
		
	}
}